package com.ldkj.msg.user.mapper;

import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MsgMapper {
    int addRcontact(@Param("username") String username,
                    @Param("nickname") String nickname);

    int addChatroom(@Param("memberlist") String memberlist,
                    @Param("displayname") String displayname);

    int addMessage(@Param("msgid") String msgid,
                   @Param("createtime") String createtime,
                   @Param("talker") String talker,
                   @Param("content") String content,
                   @Param("username") String username);

    List<Map> getMsgByRoom(@Param("room") String room);


}
